/**
 * Copyright 2015 jianglibo@gmail.com
 *
 */
package com.m3958.logcollector.vo.controllresult;

/**
 * @author jianglibo@gmail.com
 *         2015年12月24日
 *
 */
public class SignupResult {
    
    private boolean success = false;
    
    private String  message;
    
    public SignupResult() {
        this.success = true;
        this.setMessage(SignupResultMessage.SUCCESS.toString());
    }
    
    public SignupResult(String message) {
        this.success = false;
        this.setMessage(message);
    }
    
    public SignupResult(SignupResultMessage message) {
        if (message == SignupResultMessage.SUCCESS) {
            this.success = true;
        } else {
            this.success = false;
        }
        this.setMessage(message.toString());
    }
    
    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }


}
